package com.onetime.mall.trading.constants;

/**
 * @author Lenovo
 */

public enum ErrorMsg {
    ACCOUNT_EXIT(10000,"用户已存在"),
    ACCOUNT_Ban(10001,"账号已被封禁"),
    ACCOUNT_NOT_EXIT(10002,"用户不存在"),

    PASSWORD_IS_NOT_SAME(10010,"密码不一致"),
    PASSWORD_RESET_ERROR(10011,"修改密码失败"),

    EMAIL_SEND_ERROR(10020,"邮件发送失败 请重试"),
    PARAM_ERROR(10030,"参数错误"),

    SYSTEM_ERROR(10040,"系统错误"),
    REGISTER_ERROR(10041,"注册失败"),

    FILE_TYPE_ERROR(10050,"文件类型错误 请选择.jpg或.png"),
    FILE_UPLOAD_ERROR(10051,"文件上传失败"),
    FILE_NOT_EXIT(10052,"文件不存在"),
    FILE_DOWNLOAD_ERROR(10053,"文件下载异常"),
    FILE_SIZE_ERROR(10054,"文件过大"),

    OPERAT_FREQUENCY(10060,"操作频繁 稍后重试"),
    MISSING_PARAMETER(10061,"缺少参数"),
    COOKIE_ERROR(10070,"请重新登录"),
    EMAIL_LOGIN_ERROR(10071,"登录失败 账号或密码错误"),
    JSON_READ_ERROR(10080,"json参数解析错误"),
    FORM_NUMBER_ERROR(10090,"表单id错误"),
    REPEAT_COMMIT_ERROR(10100,"请勿重复提交"),
    COMMIT_FAIL_ERROR(10101,"提交失败"),
    FAVORITE_EXIT(10110,"收藏已存在");

    private Integer code;
    private String msg;

    ErrorMsg(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
